package com.goldgov.addressbook.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.goldgov.addressbook.dao.AddressBookGroupDao;
import com.goldgov.addressbook.service.AddressBookGroup;
import com.goldgov.addressbook.service.AddressBookGroupQuery;
import com.goldgov.addressbook.service.AddressBookGroupService;

@Service
public class AddressBookGroupServiceImpl implements AddressBookGroupService{

	@Autowired 
	private AddressBookGroupDao addressBookGroupDao;
	
	@Override
	public List<AddressBookGroup> getAddressBookGroupList(AddressBookGroupQuery query) {
		return addressBookGroupDao.getAddressBookGroupList(query);
	}

	@Override
	public AddressBookGroup getAddressBookGroup(String groupID) {
		return addressBookGroupDao.getAddressBookGroup(groupID);
	}

	@Override
	public void addAddressBookGroup(AddressBookGroup addressBookGroup) {
		addressBookGroupDao.addAddressBookGroup(addressBookGroup);
	}

	@Override
	public void updateAddressBookGroup(AddressBookGroup addressBookGroup) {
		addressBookGroupDao.updateAddressBookGroup(addressBookGroup);
	}

}
